#include "stm32f10x.h"
#include "wdtx_timer.h"
#include "wdtx_lcd5110.h"
#include "wdtx_adc.h"
#include "display.h"
#include "delay.h"
#include "wave.h"

int main(void)
{
	NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
	delay_init();
	LCD5510_Init();
	displayInit();
	Adc_Init();
	TIM3_Int_Init();
	TIM2_Cap_Init();
	while(1)
	{
		display(getWave());
		delay_ms(500);
	}
}
